package com.project.dao;

import com.project.entity.UserRole;

import java.util.List;

/**
 * @Author: TateBrown
 * @date: 2018/5/25 19:27
 * @param:
 * @return:
 */
public interface UserRoleMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(UserRole record);

    int insertSelective(UserRole record);

    UserRole selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(UserRole record);

    int updateByPrimaryKey(UserRole record);

    int deleteByRoleId(int roleid);

    List<UserRole> selectByCondition(UserRole userRole);

    List<UserRole> selectByRoleId(int roleid);

    List<UserRole> selectResourcesByUserId(Integer userid);

    /**
     * author: WheelChen
     * date: 2017/11/30
     * function: 根据用户表主键批量查找
     *
     * @param userid 用户表主键
     * @return
     */
    List<UserRole> selectBatchByUserId(Integer userid);
}
